<!--WARNING: This file is maintained by ROO! IT WILL BE OVERWRITTEN unless you specify null	@RooWebScaffold(automaticallyMaintainView = false) in the governing controller-->
<jsp:directive.include file="/WEB-INF/jsp/includes.jsp"/>
<jsp:directive.include file="/WEB-INF/jsp/header.jsp"/>
<script type="text/javascript">dojo.require("dijit.TitlePane");</script>
<div dojoType="dijit.TitlePane" style="width: 100%" title="List all Tasks">
    <c:if test="${not empty tasks}">
        <table width="100%">
            <tr>
                <thead>
                    <th>Id</th>
                    <th>estimate</th>
                    <th>Description</th>
                    <th>Story</th>
                    <th>Comments</th>
                    <th/>
                    <th/>
                    <th/>
                </thead>
            </tr>
            <c:forEach items="${tasks}" var="task">
                <tr>
                    <td>${task.id}</td>
                    <td>${task.estimate}</td>
                    <td>${fn:substring(task.description, 0, 10)}</td>
                    <td>${fn:substring(task.story.description, 0, 10)}</td>
                    <td>${fn:length(task.comments)}</td>
                    <td>
                        <form:form action="/yourscrum/task/${task.id}" method="GET">
                            <input alt="Show task" src="/yourscrum/static/images/show.png" title="Show task" type="image" value="Show task"/>
                        </form:form>
                    </td>
                    <td>
                        <form:form action="/yourscrum/task/${task.id}/form" method="GET">
                            <input alt="Update task" src="/yourscrum/static/images/update.png" title="Update task" type="image" value="Update task"/>
                        </form:form>
                    </td>
                    <td>
                        <form:form action="/yourscrum/task/${task.id}" method="DELETE">
                            <input alt="Delete task" src="/yourscrum/static/images/delete.png" title="Delete task" type="image" value="Delete task"/>
                        </form:form>
                    </td>
                </tr>
            </c:forEach>
        </table>
    </c:if>
    <c:if test="${empty tasks}">No Tasks found.</c:if>
</div>
<jsp:directive.include file="/WEB-INF/jsp/footer.jsp"/>
